package pl.edu.mimuw.mas.bezier;

public final class BernsteinBasisPolynomial {
	public static float value(int degree, int nr, long binomial, float arg) {
		return (float) binomial * (float) Math.pow(arg, nr)
				* (float) Math.pow(1 - arg, degree - nr);
	}

	private BernsteinBasisPolynomial() {	}
}
